<!DOCTYPE HTML>
<html>

<head>
   <title>新增帮助文档</title>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   <link href="../../../assets/css/dpl-min.css" rel="stylesheet" type="text/css" />
   <link href="../../../assets/css/bui-min.css" rel="stylesheet" type="text/css" />
   <link href="../../../assets/css/page-min.css" rel="stylesheet" type="text/css" />
   <link href="../../../assets/css/jx-style.css" rel="stylesheet" type="text/css" />
   <link href="../../../assets/css/prettify.css" rel="stylesheet" type="text/css" />
   <!--editor-->
   <link href="../../../assets/js/kindeditor/themes/default/default.css" rel="stylesheet" type="text/css" />
</head>

<body>
   <div class="container">
      <div class="detail-page  ">
         <div class="detail-page-title">
            <h4>新增帮助文档
               <div class="pull-right">
                  <a type="button" class="page-action jx-btn" data-type="close" href="#">返回</a>
               </div>
            </h4>
         </div>
         <div class="detail-section">
            <div class="detail-row">
               <form id="form" class="jx-form form-horizontal">
                  <div class="row">
                     <div class="control-group">
                        <label for="" class="control-label">文档类别:
                                    </label>
                        <div class="controls">
                           <select class="">
                                    <option value="">请选择</option>
                                    <option value="">激想体育特卖号</option>
                                  </select>
                        </div>
                     </div>
                  </div>
                  <div class="row">
                     <div class="control-group">
                        <label for="" class="control-label">标题:
                                    </label>
                        <div class="controls">
                           <input type="text" class="input-large" placeholder="填写帮助文档">
                        </div>
                     </div>
                  </div>
                  <div class="row">
                     <div class="control-group">
                        <label for="" class="control-label">是否热门:
                                    </label>
                        <div class="controls">
                           <label>  
                                 <input id="" checked name="freight" type="radio" value="0">是</label>
                           <label>  
                                 <input id="" checked name="freight" type="radio" value="0">否</label>
                        </div>
                     </div>
                  </div>
                  <div class="row">
                     <div class="control-group">
                        <label for="" class="control-label">序号:
                                    </label>
                        <div class="controls">
                           <input type="text" class="input-large" placeholder="请填写序号">
                        </div>
                     </div>
                  </div>
                  <div class="row">
                     <div class="control-group">
                        <label for="" class="control-label">详情内容：
                                    </label>
                        <textarea id="editor_id" name="content" style="width:700px;height:300px;">
                                    &lt;strong&gt;HTML内容&lt;/strong&gt;
                              </textarea>
                     </div>
                  </div>
               </form>
            </div>
         </div>
         <div class="row">
            <div class="span3 offset3">
               <button class="jx-btn btn-default btn-xlarge btn-block">保存 </button>
            </div>
         </div>
      </div>
   </div>

   <script type="text/javascript" src="../../../assets/js/jquery-1.8.1.min.js"></script>
   <script type="text/javascript" src="../../../assets/js/bootstrap.js"></script>
   <script type="text/javascript" src="../../../assets/js/bui-min.js"></script>
   <script type="text/javascript" src="../../../assets/js/config-min.js"></script>
   <script type="text/javascript" src="../../../assets/js/admin.js"></script>
   <!--sortable-->
   <script type="text/javascript" src="../../../assets/js/Sortable.min.js"></script>
   <!--editor-->
   <script type="text/javascript" src="../../../assets/js/kindeditor/kindeditor-all-min.js"></script>
   <script type="text/javascript" src="../../../assets/js/kindeditor/zh-CN.js"></script>
   <script type="text/javascript">
      KindEditor.ready(function (K) {
         var editor = K.create('#editor_id', {
            //上传管理  
            uploadJson: '/js/kindeditor/asp.net/upload_json.ashx',
            //文件管理  
            fileManagerJson: '/js/kindeditor/asp.net/file_manager_json.ashx',
            allowFileManager: true,
            //设置编辑器创建后执行的回调函数  
            afterCreate: function () {
               var self = this;
               K.ctrl(document, 13, function () {
                  self.sync();
                  K('form[name=example]')[0].submit();
               });
               K.ctrl(self.edit.doc, 13, function () {
                  self.sync();
                  K('form[name=example]')[0].submit();
               });
            },
            //上传文件后执行的回调函数,获取上传图片的路径  
            afterUpload: function (url) {
               var a = $("#uppics").val();
               if (a.length > 0) {
                  $("#uppics").val(a + "," + url);
               } else {
                  $("#uppics").val(url);
               }
               //alert($("#uppics").val())  
            },
            afterCreate: function () { //要取值设置这里 这个函数就是同步KindEditor的值到textarea文本框  
               this.sync();
            },
            afterBlur: function () { //同时设置这里   
               this.sync();
            }

         });
      });
    
  
   </script>

</body>

</html>